<%-- 
    Document   : testQuestion
    Created on : Oct 26, 2009, 1:36:54 PM
    Author     : Administrator
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://ajaxtags.org/tags/ajax" prefix="ajax" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%@page import="java.sql.*" %>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <jsp:include page="header.jsp" />
    
    <link rel="stylesheet" href="css/style1.css" />
    <link rel="stylesheet"
          href="css/styles.css"
          type="text/css"/>
    <title>JSP Page</title>
</head>
<body>
    <jsp:useBean id="ObjectTest" scope="request" class="DAO.DAOTest" />
    <%int id = Integer.parseInt(request.getParameter("subID")); %>
    <%
    
    ResultSet rs = ObjectTest.selectTest(id);
    while(rs.next()) {
    
    %>
    <div align="left">
        <form action="displayQuestion.jsp" method="post">
            
            
            <table border="1" width="630" height="113">
                <thead>
                    <tr height="61">
                        <th align="center">Trung tâm tư vấn giáo dục và bổ trợ kiến trúc phổ thông</th>
                        <th align="center">Kiểm tra:
                            <% out.println(rs.getInt("TestTime") + " phut"); %>
                            <input type="hidden" value="<%=id%>" name="id" />
                            <input type="hidden" value="<%=rs.getInt("TestTime")%>" name="time" />
                        </th>
                    </tr>
                </thead>
                <tbody>
                    <tr height="70">
                        <td align="center" width="337" ><b>Đề kiểm tra</b> </td>
                        <td align="center" width="337" ><b><% out.println(rs.getString("TestName")); %></b></td>
                    </tr>
                    
                </tbody>
            </table>
            
            <table width="631" border="0">
                <tr>
                    <td width="631" align="center">
                        <input type="hidden" value="<%= new java.util.Date()%>" name="time1"> 
                        <input type="hidden" value="<%=rs.getInt("TestID")%>" name="id">
                        <input type="submit" value="Bat Dau Thi" id="button" />
                        
                    </td>
                </tr>
            </table>
        </form>
    <dir id="time" ></div>
    </div>
    <% } %>
</body>

</html>
